home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Freeware / First Page 2006 3.00 / fp2006-final-3.00-setup.exe / {app} / Iscripts / Message Dialogs / tip-of-the-day.izs < prev    next >
Text File  |  2005-09-28  |  3KB  |  129 lines

  1. <!NOWIZARD>
  2.  
  3. <!TITLE>Tip of the day
  4. <!/TITLE>
  5.  
  6. <!DESCRIPTION> If you run any sort of "content" site, this script is an invaluable tool for making that content more dynamic, and to keep your visitors coming back. It's a "tip of the day" script that serves up a different tip daily. 
  7. <!/DESCRIPTION> 
  8.  
  9. <!CATEGORY>messages<!/CATEGORY>
  10.  
  11. <!SCRIPT>
  12. <!-- START OF SCRIPT -->
  13. <table border="0" width="100%" bgcolor="#E8E8E8" cellspacing="0" cellpadding="0">
  14. <tr><td width="100%">
  15.  
  16. <script>
  17. <!--
  18.  
  19. var today_obj=new Date()
  20. var today_date=today_obj.getDate()
  21.  
  22. var tips=new Array()
  23. //Configure the below variable to contain the "header" of the tip
  24. var tiptitle='<img src="../../tip.gif"> <b>JavaScript Tip of the day</b><br>'
  25.  
  26. //Configure the below array to hold the 31 possible tips of the month
  27. tips[1]='Tip 1 goes here'
  28. tips[2]='Tip 2 goes here'
  29. tips[3]='Tip 3 goes here'
  30. tips[4]='Tip 4 goes here'
  31. tips[5]='Tip 5 goes here'
  32. tips[6]='Tip 6 goes here'
  33. tips[7]='Tip 7 goes here'
  34. tips[8]='Tip 8 goes here'
  35. tips[9]='Tip 9 goes here'
  36. tips[10]='Tip 10 goes here'
  37. tips[11]='Tip 11 goes here'
  38. tips[12]='Tip 12 goes here'
  39. tips[13]='Tip 13 goes here'
  40. tips[14]='Tip 14 goes here'
  41. tips[15]='Tip 15 goes here'
  42. tips[16]='Tip 16 goes here'
  43. tips[17]='Tip 17 goes here'
  44. tips[18]='Tip 18 goes here'
  45. tips[19]='Tip 19 goes here'
  46. tips[20]='Tip 20 goes here'
  47. tips[21]='Tip 21 goes here'
  48. tips[22]='Tip 22 goes here'
  49. tips[23]='Tip 23 goes here'
  50. tips[24]='Tip 24 goes here'
  51. tips[25]='Tip 25 goes here'
  52. tips[26]='Tip 26 goes here'
  53. tips[27]='Tip 27 goes here'
  54. tips[28]='Tip 28 goes here'
  55. tips[29]='Tip 29 goes here'
  56. tips[30]='Tip 30 goes here'
  57. tips[31]='Tip 31 goes here'
  58.  
  59. document.write(tiptitle)
  60. document.write(tips[today_date])
  61.  
  62. //-->
  63. </script>
  64.  
  65. </td></tr></table>
  66. <!-- END OF SCRIPT -->
  67. <!/SCRIPT>
  68.  
  69. <!PREVIEW>
  70. <!-- START OF SCRIPT -->
  71.  
  72. <table border="0" width="100%" bgcolor="#E8E8E8" cellspacing="0" cellpadding="0">
  73. <tr><td width="100%">
  74.  
  75. <script>
  76. <!--
  77.  
  78. var today_obj=new Date()
  79. var today_date=today_obj.getDate()
  80.  
  81. var tips=new Array()
  82. //Configure the below variable to contain the "header" of the tip
  83. var tiptitle='<img src="../../tip.gif"> <b>JavaScript Tip of the day</b><br>'
  84.  
  85. //Configure the below array to hold the 31 possible tips of the month
  86. tips[1]='Tip 1 goes here'
  87. tips[2]='Tip 2 goes here'
  88. tips[3]='Tip 3 goes here'
  89. tips[4]='Tip 4 goes here'
  90. tips[5]='Tip 5 goes here'
  91. tips[6]='Tip 6 goes here'
  92. tips[7]='Tip 7 goes here'
  93. tips[8]='Tip 8 goes here'
  94. tips[9]='Tip 9 goes here'
  95. tips[10]='Tip 10 goes here'
  96. tips[11]='Tip 11 goes here'
  97. tips[12]='Tip 12 goes here'
  98. tips[13]='Tip 13 goes here'
  99. tips[14]='Tip 14 goes here'
  100. tips[15]='Tip 15 goes here'
  101. tips[16]='Tip 16 goes here'
  102. tips[17]='Tip 17 goes here'
  103. tips[18]='Tip 18 goes here'
  104. tips[19]='Tip 19 goes here'
  105. tips[20]='Tip 20 goes here'
  106. tips[21]='Tip 21 goes here'
  107. tips[22]='Tip 22 goes here'
  108. tips[23]='Tip 23 goes here'
  109. tips[24]='Tip 24 goes here'
  110. tips[25]='Tip 25 goes here'
  111. tips[26]='Tip 26 goes here'
  112. tips[27]='Tip 27 goes here'
  113. tips[28]='Tip 28 goes here'
  114. tips[29]='Tip 29 goes here'
  115. tips[30]='Tip 30 goes here'
  116. tips[31]='Tip 31 goes here'
  117.  
  118. document.write(tiptitle)
  119. document.write(tips[today_date])
  120.  
  121. //-->
  122. </script>
  123.  
  124. </td></tr></table>
  125. <!-- END OF SCRIPT -->
  126. <!/PREVIEW>
  127.  
  128. <!RELATED>NONE<!/RELATED>
  129.